using UnityEngine;

public class ShopCoinPrefab : MonoBehaviour
{
	public UILabel lbAmount;

	public UILabel lbPrice;

	[SerializeField]
	private string inapp_sku;

	private ShopCoinUI shopCoinUI;

	public void SetItem(int amount, float price, string sku, ShopCoinUI shopCoinUI)
	{
		lbAmount.text = "+" + amount.ToString("0");
		// lbPrice.text = price.ToString("0.00") + "$";
		inapp_sku = sku;
		this.shopCoinUI = shopCoinUI;
	}

	public void ClickItem()
	{
		shopCoinUI.PurchaseCoin(inapp_sku);
	}
}
